<extend name="template/base_index"/>

<block name="area_header">
    <link rel="stylesheet" type="text/css" media="all" href="__CSS__/wxshop.css">
    <link type="text/css" rel="stylesheet" href="__CDN__/select2/4.0.0/css/select2.min.css" />
    <link type="text/css" rel="stylesheet" href="__CDN__/select2/4.0.0/css/cosmo-skin.css" />
</block>

<block name="area_body">

    <div class="admin-main container-fluid">

        <div class="admin-main-content col-lg-8 offset-col-lg-2">
            {:W('Menus/breadcrumb')}
            <table class="table table-striped table-hover table-condensed">
                <thead>
                <tr>
                    <th>
                        <input type="checkbox" class="selectall" onclick="myUtils.selectall(this,'.selectitem');"/>全选
                    </th>
                    <th>
                        uid
                    </th>
                    <th>
                        图片
                    </th>
                    <th>
                        创建时间
                    </th>
                    <th>
                        操作
                    </th>
                </tr>
                </thead>
                <tbody>
                <empty name="list">
                    <tr>
                        <td colspan="5" class="text-center">{:L('NO_DATA')}</td>
                    </tr>
                    <else/>
                    <volist name="list" id="vo">
                        <tr>
                            <td>
                                <input type="checkbox" value="{$vo.id}" name="ids[]" class="selectitem"/>{$vo.id}
                            </td>
                            <td>
                                {$vo.uid}
                            </td>
                            <td>
                                <img src=" {$vo.imgurl}" alt="" style="height: 80px;width: 80px">
                            </td>
                            <td>
                                {$vo.create_time|date="Y年m月d日 H:i:s",###}
                            </td>
                            <td>
                                <a class="confirm ajax-post btn btn-primary btn-sm"
                                   href="{:U('Admin/ImgManage/del',array('id'=>$vo['id']))}" target-form=""><i
                                        class="fa fa-plus"></i>删除</a>
                            </td>
                        </tr>
                    </volist>
                </empty>
                </tbody>
            </table>
            <div>{$show}</div>

        </div>
        <!-- END admin-main-content -->
    </div>
    <!-- END admin-main-->
</block>

<block name="area_footer">
    <script>
        $(function () {
            $(":radio").click(function () {
                $('#tpsch').submit();
            })
        })
    </script>
</block>